package com.taoym.voucher.xcx.entity.dto;

import io.swagger.annotations.ApiParam;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @coder taoym
 * @datetime 2021/8/23 17:01
 * @desc
 */
@Data
public class XcxECGetLikeGoodsDTO implements Serializable {
    @ApiParam(value = "关键字")
    @NotBlank(message = "关键字不能为空")
    private String keyword;
    @ApiParam(value = "排序")
    private Integer sort;
    @ApiParam(value = "来源")
    private String source;
    @ApiParam(value = "当前页")
    @NotNull(message = "当前页不能为空")
    @Min(value = 1,message = "当前页不能小于1")
    @Max(value = 100,message = "当前页不能大于100")
    private Integer page;
    @ApiParam(value = "每页显示的数量")
    @NotNull(message = "每页显示的数量不能为空")
    @Min(value = 10,message = "每页显示的数量不能小于10")
    @Max(value = 20,message = "每页显示的数量不能大于20")
    private Integer pageSize;
    @ApiParam(value = "分成比例")
    private String subShareRate;
}
